def func(a,b):
    return a+b
res=lambda a,b:a+b

print(res)
print(res(3,4))
res=lambda a,b:print(a+b)
res(3,4)
def func():
    return 6
res=lambda :6
print(lambda :6)#<function <lambda> at 0x000001563E0D7E18>
print((lambda :6)())#6
print(res())#6
print(func())#6
v = [lambda :x for x in range(10)]
print(len(v))
for i in v:
    print(i())

print(v)
print(v[0])
print(v[0]())

print([x  for x in range(10)])
def func():
	return (x for x in range(10))

print(func())#<generator object func.<locals>.<genexpr> at 0x000001A8FB9A6CF0>

def func():
	return [x for x in range(10)]
print(func())
def func():
    return (x for x in range(10))
res=func()
print('*'*50)
print(list(res))

